package domain.weapon;

import images.Images;

import com.uqbar.vainilla.appearances.Appearance;
import com.uqbar.vainilla.sound.Sound;
import com.uqbar.vainilla.sound.SoundBuilder;

import domain.scenes.MainGameScene;

public class Bazooka extends Weapon {


	public void shoot(int dir, double angle, double power, MainGameScene scene) {
		//crear explosion q la manda como parametro al proyectil
		//Explosion explosion = new Explosion(100, 70, 70, 0, 0);
		
		//crea el proyectil
		BazookaProjectile pr = new BazookaProjectile(dir, this.getSight().getX(), this.getSight().getY(), power,angle);
		
		//tomo la escena y le mando la bala para agregarla
		scene.addComponent(pr);
	}

	public double getLimitPowerWeapon() {
		return 900;
	}

	@Override
	public Appearance getAppWeaponLeft() {
		return Images.getLinealAnimation("bazookaLeft", 0.07);
	}

	@Override
	public Appearance getAppWeaponRight() {
		return Images.getLinealAnimation("bazookaRight", 0.07);
	}

	@Override
	public String getKeyPathSoundReload(){
		return "reloadBazooka";
	}
	
	@Override
	public String getKeyPathSoundFire() {
		return "fireBazooka";
	}

}
